package org.smr.ministore.micro.client;

import java.util.List;

import org.blade.utils.Pager;
import org.smr.ministore.entities.GoodsTypePropsValue;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("gateway.GoodsTypePropsValue")
public interface FeignGoodsTypePropsValueMicroServiceClient {

    @RequestMapping(method = RequestMethod.PUT, value = "/GoodsTypePropsValue/batchSave")
    int batchSave(@RequestBody List< GoodsTypePropsValue> entities);

    @RequestMapping(method = RequestMethod.POST, value = "/GoodsTypePropsValue/batchModify")
    int batchModify(@RequestBody List< GoodsTypePropsValue> entities);

    @RequestMapping(method = RequestMethod.PUT, value = "/GoodsTypePropsValue/save")
    public int save(@RequestBody GoodsTypePropsValue entity) ;

    @RequestMapping(method = RequestMethod.PATCH, value = "/GoodsTypePropsValue/updateById")
    public int updateById(@RequestBody GoodsTypePropsValue id);

    @RequestMapping(method = RequestMethod.GET, value = "/GoodsTypePropsValue/queryById/{id}")
    public  GoodsTypePropsValue queryById(@PathVariable("id")Long id);

    @RequestMapping(method = RequestMethod.DELETE, value = "/GoodsTypePropsValue/deleteById/{id}")
    public int deleteById(@PathVariable("id")Long id);

    @RequestMapping(method = RequestMethod.POST, value = "/GoodsTypePropsValue/paginate")
    public Pager<GoodsTypePropsValue> paginate( @RequestBody GoodsTypePropsValue entity, Long pageSize, Long pageNum);
}
